<template>
	<view :style="skin" class="content">
		<web-view ref="webview" :src="weburl" ></web-view>
	</view>
</template>

<script>
	import {
		mapState,
		mapMutations
	} from 'vuex'
	export default {
		data() {
			return {
				// weburl:'https://help.wellgreen.com.cn/'
			}
		},
		onLoad(options) {
			if(options&&options.type){
				if(options.type == 'help'){
					// this.weburl = 'https://help.wellgreen.com.cn'
					uni.setNavigationBarTitle({
						title: '维锐科技-帮助中心'
					})
				}else if(options.type == 'privacy'){
					// this.weburl = 'https://cloudbridge-beta-1257437764.cos.ap-guangzhou.myqcloud.com/clause/lianlianzj.html'
					uni.setNavigationBarTitle({
						title: '隐私政策'
					})
				}else if(options.type == 'protocol'){
					// this.weburl = 'https://cloudbridge-beta-1257437764.cos.ap-guangzhou.myqcloud.com/clause/lianlianzj_SA.html'
					uni.setNavigationBarTitle({
						title: '软件许可及服务协议'
					})
				}
			}
		},
		methods: {
		},
		mounted() {

		},

		components: {
		},
		computed: {
			...mapState({
				skin: state => state.theme.skin
			})

		},

	}
</script>

<style scoped lang="scss">
	.content {
	}
</style>
